import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import * as path from "path";
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],

  // 设置路径别名
  resolve: {
    extensions: [".ts", ".vue"],
    alias: [
      {
        find: "@",
        replacement: path.resolve("./src"),
      },
    ],
  },

  build: {
    rollupOptions: {
      external: ["date-fns/esm"],
    },
  },
});
